/*
*  Copyright 2019-2020
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.qp.basics.common.service.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
*
* @description /
**/
@Data
public class OauthClientDetailDto implements Serializable {

    /** 防止精度丢失 */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /** 项目名称 */
    private String projectName;

    /** 供应商名称 */
    private String supplierName;

    /** 联系人 */
    private String contact;

    /** 联系电话 */
    private String phone;

    /** 入口网址 */
    private String url;

    /** 描述 */
    private String description;

    /** 客户端Id */
    private String clientId;

    /** 客户端密钥 */
    private String clientSecret;

    /** 资源id集合 */
    private String resourceIds;

    /** 权限范围 */
    private String scope;

    /** 授权方式 */
    private String authorizedGrantTypes;

    /** 重定向URI */
    private String webServerRedirectUri;

    /** 权限值 */
    private String authorities;

    /** access_token有效时间(s) */
    private Integer accessTokenValidity;

    /** refresh_token的有效时间值(s) */
    private Integer refreshTokenValidity;

    /** 预留字段 */
    private String additionalInformation;

    /** 用户是否自动Approval操作 */
    private String autoapprove;
}
